package r21310.chap04.练习标准答案;

public class Haixianpizza extends Pizza {
    private String peiliao;

    public String getPeiliao() {
        return peiliao;
    }

    public void setPeiliao(String peiliao) {
        this.peiliao = peiliao;
    }

    public Haixianpizza(String name, int price, int size, String peiliao) {
        super(name, price, size);
        this.peiliao = peiliao;
    }



    public String show(){
        System.out.println("名称为：海鲜披萨\n价格为"+getPrice()+"\n尺寸为"+getSize()+"\n配料为"+getPeiliao());

        return null;
    }
}
